// 展示toast信息
export function toast(msg = '数据请求失败，请重试！',duration = 1500) {
  uni.showToast({
    title: msg,
    duration:duration,
    icon: 'none',
    mask: true,
  })
}
// 数据请求展示loading
export function loading(msg = '加载中...') {
  if (msg == false) {
    uni.hideLoading()
    return
  }
  uni.showLoading({
    title: msg,
    mask: true,
  })
}
// 拨打电话
export function makeCall(phone) {
  uni.makePhoneCall({
    phoneNumber: phone,
    success: (result) => {
      console.log(result);
    },
    fail: (error) => {
      console.log(error);
    }
  })
}